package top.tagao.yygh.user.client;

import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import top.tagao.yygh.model.user.Patient;

/**
 * @author fu-xiao-liu
 * @Date 2022/3/14 12:50
 */

@Repository
@FeignClient(value = "service-user")
public interface PatientFeignClient {

    /**
     * @date  获取就诊人
     * @param id
     * @return top.tagao.yygh.model.user.Patient
     */
    @GetMapping("/api/user/patient/inner/get/{id}")
    Patient getPatient(@PathVariable("id") Long id);
}
